﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VehicleDD.aspx.cs" Inherits="IYAKASAPortal.LabourVerify.VehicleDD" %>

<%@ Register Assembly="gfPage" Namespace="gfPage" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>成都弥荣科技发展有限公司--调度列表</title>
    <link rel="stylesheet" href="../support/tfNiceTable/tfNiceTable.css" />
    <style type="text/css">
        #mainbody tr td:nth-child(2){
            font-size:1.3em;
            font-weight:600;
        }
        #mainbody tr td:nth-child(6),#mainbody tr td:nth-child(7),#mainbody tr td:nth-child(8){
            font-weight:600;
        }
    </style>
    <script type="text/javascript" src="../support/tfNiceTable/tfNiceTable.js"></script>
    <script type="text/javascript" src="../script/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">
        function doAjaxShow() {
            document.getElementById("divNiceTableMessage").style.left = $(window).width / 2;// window.parent.document.getElementById("mainContentFrame").scrollWidth/2-200;
            document.getElementById("divNiceTableMessage").style.top = $(window).height / 2;//window.parent.document.getElementById("mainContentFrame").scrollHeight/2-15;

            document.getElementById("divNiceTableMessage").style.display = "block";
        }
</script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <input type="hidden" id="txtUniqueKey" name="txtUniqueKey" value="" />
                <div id="divNiceTableMessage" class="tfNiceTableMessage" style="display: none;">正在处理...</div>
                <table border="0" width="100%" cellpadding="0" cellspacing="0" style="height: 25px;">
                    <tr>
                        <td class="main_title_left"></td>
                        <td class="main_title_center">&nbsp;成都弥荣科技发展有限公司--车辆调度</td>
                        <td class="main_title_right"></td>
                    </tr>
                </table>
                <table width="100%" cellpadding="0" cellspacing="0" border="0" class="mainWidth">
                    <tr>
                        <td>
                            <table id="main" border="1" cellspacing="0" cellpadding="3" class="tfNiceTable">
                                <thead>
                                    <tr class="tfNiceTable_head_style">
                                        <td align="center" class="tfNiceTable_head_topleft">&nbsp;</td>
                                        <td style="width: 6%" align="center">线号</td>
                                        <td style="width: 4%" align="center">ID</td>
                                        <td style="width: 8%" align="center">号牌号码</td>
                                        <td style="width: 8%" align="center">号牌种类</td>
                                        <td style="width: 4%" align="center">工位1</td>
                                        <td style="width: 4%" align="center">工位2</td>
                                        <td style="width: 4%" align="center">工位3</td>
                                        <td style="width: 62%" align="center">检测方法</td>
                                    </tr>
                                </thead>
                                <tbody id="mainbody">
                                    <asp:Repeater ID="rptList" runat="server">
                                        <ItemTemplate>
                                            <tr style="cursor: pointer;" onmouseover="doMouseOver(this);" onmouseout="doMouseOut(this);" onclick="setSelectedRowData(this,'<%# DataBinder.Eval(Container.DataItem, "ID")%>');">
                                                <td align="center" class="tfNiceTable_body_arrow">
                                                <img src="../support/tfNiceTable/images/tfNiceTable_Pointer.gif" alt="" /></td>
                                                <td align="center"><%# DataBinder.Eval(Container.DataItem, "JCXH")%></td>
                                                <td align="center"><%# DataBinder.Eval(Container.DataItem, "ID")%></td>
                                                <td align="center"><%# DataBinder.Eval(Container.DataItem, "HPHM")%></td>
                                                <td align="center"><%# DataBinder.Eval(Container.DataItem, "HPZL")%></td>
                                                <td align="center"><%# getCheckS(DataBinder.Eval(Container.DataItem, "GWBH").ToString())%></td>
                                                <td align="center"><%# getCheckJ(DataBinder.Eval(Container.DataItem, "GWBH").ToString())%></td>
                                                <td align="center"><%# getCheckX(DataBinder.Eval(Container.DataItem, "GWBH").ToString())%></td>
                                                <td align="center"><%# getJCXM(DataBinder.Eval(Container.DataItem, "JYXM").ToString())%></td
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </tbody>
                                <tr>
                                    <td align="right" colspan="9">
                                        <asp:Label ID="txtRecord1" runat="server" Text="共"></asp:Label>
                                        <asp:Label ID="lblRecord" runat="server" ForeColor="Red" Font-Size="X-Large" Text="0"></asp:Label>
                                        <asp:Label ID="txtRecord2" runat="server" Text="条  "></asp:Label>
                                        <cc1:GreatPager ID="GreatPager1" runat="server" GenerateNumber="true" OnPageIndexChanging="GreatPager1_PageIndexChanging" Visible="false"></cc1:GreatPager>
                                        <asp:Timer ID="Timer1" runat="server" Interval="10000" OnTick="Timer1_Tick"></asp:Timer>
                                    </td>
                                </tr>
                            </table>
                            <br />
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
<script type="text/javascript">
    $(function () {
        getColor();
    });
    function getColor(){
        $("#mainbody tr").each(function () {
            var td1 = $(this).children().eq(5);
            if (td1.text() == "已检") {
                td1.css("background", "#7CFC00");
            } else if (td1.text() == "在检") {
                td1.css("background", "yellow");
            }
            var td2 = $(this).children().eq(6);
            if (td2.text() == "已检") {
                td2.css("background", "#7CFC00");
            } else if (td2.text() == "在检") {
                td2.css("background", "yellow");
            }
            var td3 = $(this).children().eq(7);
            if (td3.text() == "已检") {
                td3.css("background", "#7CFC00");
            } else if (td3.text() == "在检") {
                td3.css("background", "yellow");
            }
        });
    }
</script>